<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>附近车辆数量管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
		});
	</script>
</head>
<body class="gray-bg">
	<div class="wrapper wrapper-content">
	<div class="ibox">
	<div class="ibox-title">
		<h5>附近车辆数量列表 </h5>
	</div>
    <div class="ibox-content">
	<sys:message content="${message}"/>
	
	<!--查询条件-->
	<div class="row">
	<div class="col-sm-12">
	<form:form id="searchForm" modelAttribute="logisCarCount" action="${ctx}/logis/logisCarCount/" method="post" class="form-inline">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
		<table:sortColumn id="orderBy" name="orderBy" value="${page.orderBy}" callback="sortOrRefresh();"/><!-- 支持排序 -->
		<div class="form-group">
			<span>省：</span>
				<form:input path="province" htmlEscape="false" maxlength="32"  class=" form-control input-sm"/>
			<span>市：</span>
				<form:input path="city" htmlEscape="false" maxlength="64"  class=" form-control input-sm"/>
			<span>区：</span>
				<form:input path="area" htmlEscape="false" maxlength="64"  class=" form-control input-sm"/>
			<span>详细地址：</span>
				<form:input path="address" htmlEscape="false" maxlength="256"  class=" form-control input-sm"/>
			<div class="pull-right">
				<button  class="btn btn-primary btn-sm " onclick="search()" ><i class="fa fa-search"></i> 查询</button>
			</div>
		 </div>	
	</form:form>
	<br/>
	</div>
	</div>
	
	<!-- 工具栏 -->
	<div class="row">
	<div class="col-sm-12">
		<div class="pull-left">
			<shiro:hasPermission name="logis:logisCarCount:add">
				<table:addRow url="${ctx}/logis/logisCarCount/form" title="附近车辆数量"></table:addRow><!-- 增加按钮 -->
			</shiro:hasPermission>


	       <button class="btn btn-white btn-sm " data-toggle="tooltip" data-placement="left" onclick="sortOrRefresh()" title="刷新"><i class="glyphicon glyphicon-repeat"></i> 刷新</button>
		
			</div>
		
	</div>
	</div>
	
	<!-- 表格 -->
	<table id="contentTable" class="table table-striped table-bordered table-hover table-condensed dataTables-example dataTable">
		<thead>
			<tr>
				<th  class="sort-column province">省</th>
				<th  class="sort-column city">市</th>
				<th  class="sort-column area">区</th>
				<th  class="sort-column address">详细地址</th>
				<th  class="sort-column carCount">车辆数(最小)</th>
				<th  class="sort-column maxCount">车辆数(最大)</th>
				<th>操作</th>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="logisCarCount">
			<tr>
				<td>
					${logisCarCount.province}
				</td>
				<td>
					${logisCarCount.city}
				</td>
				<td>
					${logisCarCount.area}
				</td>
				<td>
					${logisCarCount.address}
				</td>
				<td>
					${logisCarCount.carCount}
				</td>
				<td>
						${logisCarCount.maxCarCount}
				</td>

				<td>
					<shiro:hasPermission name="logis:logisCarCount:view">
						<a href="#" onclick="openDialogView('查看附近车辆数量', '${ctx}/logis/logisCarCount/form?id=${logisCarCount.id}','800px', '500px')" class="btn btn-info btn-xs" ><i class="fa fa-search-plus"></i> 查看</a>
					</shiro:hasPermission>
					<shiro:hasPermission name="logis:logisCarCount:edit">
    					<a href="#" onclick="openDialog('修改附近车辆数量', '${ctx}/logis/logisCarCount/form?id=${logisCarCount.id}','800px', '500px')" class="btn btn-success btn-xs" ><i class="fa fa-edit"></i> 修改</a>
    				</shiro:hasPermission>
    				<shiro:hasPermission name="logis:logisCarCount:del">
						<a href="${ctx}/logis/logisCarCount/delete?id=${logisCarCount.id}" onclick="return confirmx('确认要删除该附近车辆数量吗？', this.href)"   class="btn btn-danger btn-xs"><i class="fa fa-trash"></i> 删除</a>
					</shiro:hasPermission>
				</td>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	
		<!-- 分页代码 -->
	<table:page page="${page}"></table:page>
	<br/>
	<br/>
	</div>
	</div>
</div>
</body>
</html>